package com.tdkj.model.shop;

import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.tdkj.model.base.BaseEntity;
import com.tdkj.model.user.BeanUser;

/**
 * AuctionQuotes entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "shop_good_auction_quote")
public class BeanGoodAuctionQuote extends BaseEntity {

	private BigDecimal price;
	
	private BeanGoodAuction auction;
	private BeanUser user;
	
	private Timestamp quoteTime;

	public BigDecimal getPrice() {
		return this.price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	/**
	 * @return the auction
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="auction_id")
	public BeanGoodAuction getAuction() {
		return auction;
	}

	/**
	 * @param auction the auction to set
	 */
	public void setAuction(BeanGoodAuction auction) {
		this.auction = auction;
	}

	/**
	 * @return the user
	 */
	@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.REFRESH})
	@JoinColumn(name="user_id")
	public BeanUser getUser() {
		return user;
	}

	/**
	 * @param user the user to set
	 */
	public void setUser(BeanUser user) {
		this.user = user;
	}

	/**
	 * @return the quoteTime
	 */
	public Timestamp getQuoteTime() {
		return quoteTime;
	}

	/**
	 * @param quoteTime the quoteTime to set
	 */
	public void setQuoteTime(Timestamp quoteTime) {
		this.quoteTime = quoteTime;
	}

}